package com.community.demo.generics;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class InicializadorServlet
 */
@WebServlet(
	displayName = "InicializadorServlet",
	name = "InicializadorServlet",
	description = "Servlet inicializador de la aplicacion",
	asyncSupported = false,
	loadOnStartup = 2,
	urlPatterns = {"/Inicio"}
)
public class InicializadorServlet extends HttpServlet {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Override
	public void doGet(HttpServletRequest request, HttpServletResponse response)	throws ServletException, IOException {
		String URL = "/jsf/seguridad/login/login.jsf";
		getServletContext().getRequestDispatcher(URL).forward(request, response);
	}
}